%h2 new task
%form{"action"=>"/update/#{@task.id}","method"=>"POST"}
  %input{"type"=>"hidden","name"=>"_method","value"=>"PUT"}
  %p
    title
    %input{"type"=>"text","name"=>"task[title]","value"=>"#{@task.title}"}
  %p
    body
    %textarea{"name"=>"task[body]"}=@task.body
  %p
    %input{"type"=>"submit","name"=>"submit","value"=>"Save"}
